getFileURL

fun getFileURL(record: Record, filename: String, thumbFormat: FilesService.ThumbFormat? = null, token: String? = null, download: Boolean = false): String

Gets the url to a file in Pocketbase

Parameters

record

the record where the file is present

filename

the file's name

thumbFormat

the thumb variant of the requested file

token

the file token used to access protected files

download

weather or not pocketbase should force the browser to download the file rather than showing a preview